Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for UTF-16 encoded kubeconfig files #1654

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

goenning
Copy link
Contributor

Motivation

Windows PowerShell uses the Unicode UTF-16LE encoding by default, which means that kubeconfig files may be encoded as UTF16 if they're being generated by Windows PS.

kubectl can parse UTF16 kubeconfig files, so I thought we could add this directly into kube-rs

Solution

This PR basically adds support for UTF-16LE, UTF-16BE, UTF-8 with BOM and UTF-8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant